package com.tanhua.bg.pojo;



import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

//日志表: id;日志时间(登录时间),登出时间,地点,设备;userId

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "log_page")
public class Log implements Serializable {

    private static final long serialVersionUID = -291788258125767614L;

    @Id
    private Integer id;             //编号
    private Long logTime;        //登录时间
    private Long logOutTime;     //登出时间
    private String place;           //地点
    private String equipment;       //设备
    private Integer userId;         //用户id
    private Long created;  //日志创建时间

}
